package com.dhl.deliver.utils;


        import java.time.Instant;
        import java.time.LocalDateTime;
        import java.time.ZoneId;
        import java.time.format.DateTimeFormatter;
        import java.util.Date;

public class TimeUtil {
    /*
    将字符串转换为LocalDateTime
     */
    public LocalDateTime dataTransfer(Date date){
        System.out.println(date);
        Instant instant=date.toInstant();
        ZoneId zoneId=ZoneId.systemDefault();

        LocalDateTime time=instant.atZone(zoneId).toLocalDateTime();
        return time;
    }


}
